package edu.spec.wfl.week08.class2.homework;

public class Frog extends Animal implements IAnimal,IAmphibious,IHibernate{
    public String amphibious;

    public Frog(String name, String food, String area) {
        super(name, food, area);
    }

    @Override
    public String findFood() {
        return "蚊虫";
    }

    @Override
    public String wholeLife() {
        return (born()+"\t"+findFood()+"\t"+eat()+"\t"+old()+"\t"+sick()+"\t"+die()+"\t");
    }

    @Override
    public String born() {
        return "2005";
    }

    @Override
    public String old() {
        return "2岁";
    }

    @Override
    public String sick() {
        return "残疾";
    }

    @Override
    public String die() {
        return "饿死";
    }

    @Override
    public String amphibious() {
        return name+"既能在陆地生活也能在水里生活";
    }

    @Override
    public String ihibernate() {
        return name+"冬眠3个月";
    }

    @Override
    public String hibernate() {
        return null;
    }
}
